package com.boot.consumer.controller;

import com.ego.inter.domain.UserAddress;
import com.ego.inter.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @date 2020/10/12 19:28
 */
@RestController
@RequestMapping("order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("all")
    public List<UserAddress> all(){
        return orderService.initOrder();
    }
}
